package com.service.imp;

import com.mapper.SomeClassMapper;
import com.pojo.SomeClass;
import com.service.SomeClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SomeClassServiceImp implements SomeClassService {
    @Autowired
    SomeClassMapper someClassMapper;

    @Override
    public List<SomeClass> findAll() {
        return someClassMapper.findAll();
    }

    @Override
    public int getCount() {
        return someClassMapper.getCount();
    }

    @Override
    public List<SomeClass> selectFindAll(int startRow,int startNow) {
        return someClassMapper.selectFindAll(startRow,startNow);
    }

    @Override
    public int insert(SomeClass record) {

        return someClassMapper.insert(record);
    }


}
